﻿using System;
using System.Collections.Generic;
using System.IO;
using System.IO.Ports;
using System.Text;
using UtilZ.Dotnet.Ex.Communication.Base;

namespace UtilZ.Dotnet.Ex.Communication.Ports
{
    /// <summary>
    /// 串口数据拆包参数
    /// </summary>
    public class SerialPortUnpackerPara : UnpackerParaAbs
    {
        /// <summary>
        /// 接收数据串口
        /// </summary>
        public ISerialPort SerialPort { get; set; }

        /// <summary>
        /// 数据接收事件类型
        /// </summary>
        public SerialPortData EventType { get; set; }


        /// <summary>
        /// 构造函数
        /// </summary>
        public SerialPortUnpackerPara()
            : base()
        {

        }
    }
}
